package com.da.springtest.condition.test1;

import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Conditional;
import org.springframework.context.annotation.Configuration;

/**
 * @author chenlida
 * @date 2020/6/22 14:37
 * @description
 */
//@Conditional(MyCondition1.class)
@Configuration
public class MainConfig1 {
    @Conditional(MyCondition1.class)
    @Bean
    public String name() {
        return "Joker";
    }

    @Bean
    public String address() {
        return "长沙市";
    }
}
